﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_General_MenuRight : bzUCBase
{
    public DataTable dtPartner = new DataTable();
    public DataTable dtSponsors = new DataTable();
    public DataTable dtservice = new DataTable();
    public string _Online = "";
    public string Date = DateTime.Now.Ticks.ToString();
    protected void Page_Load(object sender, EventArgs e)
    {
        this.initSiteLang(bzSiteOption.Group.Limit, bzSiteOption.None, bzLang.None);
        //dtPartner = new bzPartner().getTable("", "1", "0", "0", "-1");
        //dtSponsors = new bzSponsors().getTable("", "1", "0", "0", "-1");
        bzSiteOption site = new bzSiteOption("Website", "Template");
        if (Session["Visitor"] == null)
        {
            site.upVisitor();
            Session["Visitor"] = site.getVisitor(site.SiteOption["VisitorSize"]);
        }
        bzOnline online = new bzOnline();
        if (Session["Online"] == null)
        {
            Session["Online"] = bzStringClass.ranString(6);
        }
        else
        {
            online.delete("%" + Request.UserHostAddress + "_" + Session["Online"]);
        }
        _Online = online.getOnline(Request.UserHostAddress + "_" + Session["Online"]);
    }   
}
